# -*- coding: utf-8 -*-
"""Created By Corvo"""

from mod.common.mod import Mod
from data_merge import *
from mdk.loader import *
from mdk.module import preset_module


@Mod.Binding("beast", "1.0.0")
class BeastMod(object):

    @Mod.InitServer()
    def ServerInit(self):
        system = MDKConfig.InitModuleServer()
        register = system.GetRegister()
        # -----------------------------------------------------------------------------------
        register.RegisterModule(preset_module.DebugModuleServer)
        register.RegisterModule(preset_module.PropertyModuleServer)
        register.RegisterModule(DataMergeModuleServer)

    @Mod.InitClient()
    def ClientInit(self):
        system = MDKConfig.InitModuleClient()
        register = system.GetRegister()
        # -----------------------------------------------------------------------------------
        register.RegisterModule(preset_module.DebugModuleClient)
        register.RegisterModule(preset_module.PropertyModuleClient)
        register.RegisterModule(DataMergeModuleClient)
